package com.ruoyi.project.wx.dao;


import com.ruoyi.project.wx.domain.GoodsProductDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 商品产品
 * @author sys
 * @email 1992lcg@163.com
 * @date 2019-03-19 16:39:22
 */
@Mapper
public interface GoodsProductDao {

	GoodsProductDO get(String id);
	
	List<GoodsProductDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GoodsProductDO goodsProduct);
	
	int update(GoodsProductDO goodsProduct);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	List<GoodsProductDO> queryBySku(String uuid);

	int removeByGoodsId(String goodsId);

	int removeByGoodsIdJ(String goodsId);

	List<GoodsProductDO> getGoodsByGoodsId(Map<String, Object> params);

	GoodsProductDO getByGoodsIdAndSpec(Map<String, Object> params);

	GoodsProductDO getBySpikeIdAndSpec(Map<String, Object> params);

	GoodsProductDO getByNineIdAndSpec(Map<String, Object> params);

	GoodsProductDO getBargainIdAndSpec(Map<String, Object> params);

	int updateByOld(Map<String, Object> params);

	Map<String,Object> error(Map<String,Object> map);
}
